addCurrentBranchLog

Adds a chat log to the repository and clears the current branch messages.

Parameters

log

The chat log to be added.


fun addCurrentBranchLog(messageList: List<ChatMessage>, logType: ChatBranch, toBeCompleted: Date? = null)

Creates and adds a new chat log based on a list of messages. It makes a copy of the provided message list before storing it.

Parameters

messageList

The list of messages to be stored in the log.

logType

The type of chat branch associated with the log.

toBeCompleted

(Optional) A date indicating when the chat log should be completed.